import 'package:xanno/src/anno/utils/base.dart';

class GEntity extends GBase {
  ///json string
  ///严格json数据
  final String json;

  ///是否自动生成, 默认会第一次生成之后自动关闭，提高效率
  final bool auto;

  final bool enable;

  ///使用示例
  ///   @GEntity(json: '''
  ///   {
  ///       "name": "爸爸",
  ///       "age": 30,
  ///       "wife": {
  ///           "name": "妈妈",
  ///           "age": 28,
  ///           "beautiful": true
  ///       },
  ///       "childList": [
  ///           {
  ///               "name": "孩子1",
  ///               "age": 1,
  ///               "sex": "男"
  ///           },
  ///           {
  ///               "name": "孩子2",
  ///               "age": 2,
  ///               "sex": "女"
  ///           }
  ///       ]
  ///   }
  ///   ''')
  ///   class JsonEntity {}
  const GEntity({required this.json, this.auto = true, this.enable = true})
      : super();
}
